package com.kt.common.clazz.interface1

/**
 * 接口的继承
 */
interface People : MyInterface1 {

    fun think()


    /**声明属性*/
    var prop: Int
    //get() {field = prop} //这里不能使用幕后字段field

    var agent: Int

    var firstName: String

    var lastName: String

    override val name: String
        get() = "$firstName $lastName"


    fun byCar() {
        println("我可以坐车")
    }

}